package 设计模式.设计原则.依赖倒置;

public class Study {
   /* public void studyCourse(StudyCourse course){
        course.print();
    }*/

    private StudyCourse course;

   /* public Study(StudyCourse course) {
        this.course = course;
    }*/

    public void setCourse(StudyCourse course) {
        this.course = course;
    }

    public void studyCourse(){
        course.print();
    }
}
